//======================
//路由
//======================
//导入路由控制器
let routesController = require(__basename + '/routes/routerControl.js');
// 实现登录流程思路, 1. 登录数据库,和密码验证 , 2. 成功后,生成唯一验证tk令牌[存在登录状态的表格中]
//导出路由函数
module.exports = app => {
  app.post('/getUserInfo', routesController.getUserInfo);
  app.post('/login', routesController.login);
  app.post('/register', routesController.register);
  app.post('/logout', routesController.logout);
  app.post('/orderLog', routesController.orderLog);
  app.post('/orderInfo', routesController.orderInfo);
  app.post('/manageLogin', routesController.manageLogin);
  app.post('/updateManage', routesController.updateManage);
  app.post('/getManageList', routesController.getManageList);
  app.post('/delManage', routesController.delManage);
  app.post('/getMonthList', routesController.getMonthList);
  app.post('/getLatest', routesController.getLatest);
  app.post('/getUserList', routesController.getUserList);
  //
  
  app.post('/getUserDo', routesController.getUserDo);
  app.post('/onPay', routesController.getUserDo);
  
}